import pop_ui_base from '../../common/ui/pop_ui_base'
import EventDispatch, { Event_Name } from '../../common/event/EventDispatch'


const {ccclass, property} = cc._decorator;

@ccclass
export default class PauseControl extends pop_ui_base {

    @property(cc.Node)
    btn1: cc.Node = null;

    @property(cc.Node)
    btn2: cc.Node = null;

    constructor() {
        super();
    }

    on_show() {
    }

    onContinue() {
        EventDispatch.ins().fire(Event_Name.CONTINUE);
        super.hide()
    }

    onHome() {
        super.hide()
        EventDispatch.ins().fire(Event_Name.GO_HOME);
        // cc.director.loadScene('home')
    }
     
}
